/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BD.sqlmapdao;
import BD.interfaces.ComentarioPaginaDao;
import BE.ComentarioPagina;
import com.ibatis.dao.client.DaoManager;
import java.util.List;
/**
 *
 * @author camposvc
 */
public class ComentarioPaginaSqlMapDao extends BaseSqlMapDao implements ComentarioPaginaDao{

    public ComentarioPaginaSqlMapDao(DaoManager daoManager) {
        super(daoManager);
    }

    @Override
    public List<ComentarioPagina> obtenerBusqueda(int idPagina){
        return (List<ComentarioPagina>)queryForList("getListComentarioPagina",idPagina);
    }

    @Override
    public void insertarComentPagina(ComentarioPagina comentpag){
        insert("insertComentarioPagina",comentpag);
    }
}
